package com.ellwood.copyright.infrastructure.softConf.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ProjectName: ell-copyright-pro
 * @PackageName: com.ellwood.copyright.infrastructure.dto.softConf
 * @ClassName: FieldInfo
 * @Description: // 创建数据表字段信息dto
 * @Author: Ellwood
 * @CreateDate: 2024/11/19 - 11:25
 * @Version: V1.0.0
 */
@Schema(description = "数据表字段")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class FieldInfoDTO {

    @Schema(description = "字段名")
    private String fieldName;

    @Schema(description = "字段类型")
    private String fieldType;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "是否为空")
    private Boolean isNullable;

    @Schema(description = "是否是枚举类型")
    private Boolean isEnum;

    @Schema(description = "描述")
    private String fieldDescription;

    /**此字段是后面生成代码的实体属性名称*/
    @Schema(description = "属性名")
    private String propertyName;

    /** 此字段是后面生成代码的实体属性名称*/
    @Schema(description = "属性类型")
    private String propertyType;

    @Schema(description = "是否自增")
    private Boolean isAutoIncrement;

    @Schema(description = "是否主键")
    private Boolean isPrimaryKey;



}
